/*
*    Phantom v2.0 GUI Automation Software
*    Copyright (C) 2009  John C. Van Arsdall (john@phantomtest.com)
*
*    This program is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License along
*    with this program; if not, write to the Free Software Foundation, Inc.,
*    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
#pragma once
#include "SSI_InternalErrors.h"

// Errors on Minion Side
#define ERR_P01510 "Click failed. (P01510)"
#define ERR_P01511 "Button must be a radio button for 'IsSelected'. (P01511)"
#define ERR_P01512 "Button must be a check box for 'IsChecked'. (P01512)"

#define ERR_P01520 "Selection (%d) invalid.  There are from 0 to %d elements in this control. (P01520)"
#define ERR_P01521 "Selection (%d) invalid.  There are from 0 to %d elements in this control. (P01521)"

#define ERR_P01530 "Selection (%d) invalid.  There are from 0 to %d elements in this control. (P01530)"
#define ERR_P01531 "Selection (%d) invalid.  ScrollBar range is from %d to %d. (P01531)"
#define ERR_P01532 "Selection (%d) invalid.  There are from 0 to %d elements in this control. (P01532)"
#define ERR_P01533 "Selection (%d) invalid.  There are from 0 to %d elements in this control. (P01533)"

#define ERR_P01540 "ScrollBar position (%d) invalid.  Position can be from %d to %d. (P01540)"

#define ERR_P01550 "TabCtrl tab (%d) invalid. (P01550)"

#define ERR_P01560 "ToolBar button (%d) invalid. (P01560)"

#define ERR_P01570 "Could not locate item '%s'. (P01570)"
#define ERR_P01571 "Could not locate item '%s'. (P01571)"
#define ERR_P01572 "Could not retrieve item text. (P01572)"
#define ERR_P01573 "Item '%s' not found. (P01573)"
#define ERR_P01574 "Item '%s' not found. (P01574)"
#define ERR_P01575 "Bad ListView item index: %d, %d(P01575)"
#define ERR_P01576 "Bad ListView column index: %d (P01576)"
#define ERR_P01577 "Bad ListView item index: %d(P01577)"
#define ERR_P01578 "ListView does not have a column header.(P01578)"
#define ERR_P01579 "Bad ListView item index: %d(P01579)"

#define ERR_P01600 "KeyDown requires a single character input: %s. (P01600)"
#define ERR_P01601 "KeyUp requires a single character input: %s. (P01601)"
#define ERR_P01602 "Invalid key: %s. (P01602)"
#define ERR_P01603 "Invalid key: %s. (P01603)"

#define ERR_P01610 "Could not move mouse. (P01612)"
#define ERR_P01611 "Could not move mouse. (P01611)"

#define P_MAKEERR0(x)  String sErr; sErr.Format(x); theAPI.m_ReturnStatus = CStatus(sERROR, sErr);
#define P_MAKEERR1(x, y)  String sErr; sErr.Format(x, y); theAPI.m_ReturnStatus = CStatus(sERROR, sErr);
#define P_MAKEERR2(x, y, z)  String sErr; sErr.Format(x, y, z); theAPI.m_ReturnStatus = CStatus(sERROR, sErr);
#define P_MAKEERR3(x, y, z, q)  String sErr; sErr.Format(x, y, z, q); theAPI.m_ReturnStatus = CStatus(sERROR, sErr);